<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="container">
        <span class="item item1">1</span>
        <span class="item item2">2</span>
        <span class="item item3">3</span>
        <span class="item item4">4</span>
        <span class="item item5">5</span>
        <span class="item item6">6</span>
    </div>
</body>
<style>
    .container {
        width: 100%;
        height: 100%;
        background-color: pink;
        /* 申明网格布局 */
        display: grid;
        /* 设置布局格式 row行布局;column列布局*/
        grid-auto-flow: column;
        /* 设置多少列，且每列的宽度 */
        grid-template-columns: 1fr 1fr 2fr;
        /* 设置多少行，且每行的宽度 */
        grid-template-rows: 2fr 3fr;
        
    }
    .item {
        background-color: red;
    }
</style>
</html>